<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class NodeType</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Interface NodeType</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Represents a <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright &amp;copy; 2004-2005, Domain51</li>
				<li><span class="field">author:</span> PHP - Travis Swicegood &lt;<a href="mailto:travis@domain51.net">travis@domain51.net</a>&gt;</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/Workspace.html#methodgetAccessManager">Workspace::getAccessManager()</a>, <a href="../phpContentRepository/AccessManager.html">AccessManager</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_nodetype_NodeType_interface_php.html">/nodetype/NodeType.interface.php</a> (line <span class="field">37</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#canAddChildNode" title="details" class="method-name">canAddChildNode</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$childNodeName</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$nodeTypeName</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#canSetProperty" title="details" class="method-name">canSetProperty</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$propertyName</span>, <span class="var-type">Value</span>&nbsp;<span class="var-name">$value</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#checkRemoveItem" title="details" class="method-name">checkRemoveItem</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$itemName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getChildNodeDefs" title="details" class="method-name">getChildNodeDefs</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getDeclaredChildNodeDefs" title="details" class="method-name">getDeclaredChildNodeDefs</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getDeclaredPropertyDefs" title="details" class="method-name">getDeclaredPropertyDefs</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getDeclaredSupertypes" title="details" class="method-name">getDeclaredSupertypes</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getName" title="details" class="method-name">getName</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getPropertyDefs" title="details" class="method-name">getPropertyDefs</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getSupertypes" title="details" class="method-name">getSupertypes</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#isMixin" title="details" class="method-name">isMixin</a>
										()
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodcanAddChildNode" id="canAddChildNode"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">canAddChildNode</span> (line <span class="line-number">164</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns TRUE if adding a child <a href="../phpContentRepository/Node.html">Node</a> called  $childNodeName is allowed by this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
<p class="description"><p>If $nodeTypeName is specified, this should determine if the  child <a href="../phpContentRepository/Node.html">Node</a> can be added with the specific <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			canAddChildNode
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$childNodeName</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$nodeTypeName</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$childNodeName</span><span class="var-description">: The name of the child <a href="../phpContentRepository/Node.html">Node</a>.</span>			</li>
					<li>
				<span class="var-type">string|null</span>
				<span class="var-name">$nodeTypeName</span><span class="var-description">: The name of the <a href="../phpContentRepository/NodeType.html">NodeType</a> of the child <a href="../phpContentRepository/Node.html">Node</a>.</span>			</li>
				</ul>
		
		
	</div>
<a name="methodcanSetProperty" id="canSetProperty"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">canSetProperty</span> (line <span class="line-number">148</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns TRUE if setting $propertyName to  $value is allowed by this <a href="../phpContentRepository/NodeType.html">NodeType</a>; otherwise returns  FALSE.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			canSetProperty
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$propertyName</span>, <span class="var-type">Value</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$propertyName</span><span class="var-description">: The name of the property</span>			</li>
					<li>
				<span class="var-type">object
 A</span>
				<span class="var-name">$value</span><span class="var-description">: Value object.</span>			</li>
				</ul>
		
		
	</div>
<a name="methodcheckRemoveItem" id="checkRemoveItem"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">checkRemoveItem</span> (line <span class="line-number">175</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns TRUE if removing $itemName is allowed  by this <a href="../phpContentRepository/NodeType.html">NodeType</a>; otherwise returns FALSE.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			checkRemoveItem
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$itemName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$itemName</span><span class="var-description">: The name of the child item</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetChildNodeDefs" id="getChildNodeDefs"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getChildNodeDefs</span> (line <span class="line-number">120</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array containing the child <a href="../phpContentRepository/NodeDef.html">NodeDef</a>s of this  <a href="../phpContentRepository/NodeType.html">NodeType</a>, including the child <a href="../phpContentRepository/NodeDef.html">NodeDef</a>s inherited  from supertypes of this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing the child <a href="../phpContentRepository/NodeDef.html">NodeDef</a>s.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/NodeType.html#methodgetDeclaredChildNodeDefs">NodeType::getDeclaredChildNodeDefs()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getChildNodeDefs
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetDeclaredChildNodeDefs" id="getDeclaredChildNodeDefs"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getDeclaredChildNodeDefs</span> (line <span class="line-number">134</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array containing the child <a href="../phpContentRepository/NodeDef.html">NodeDef</a>s explicitly  specified in the declaration of this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
<p class="description"><p>This does not include child <a href="../phpContentRepository/NodeDef.html">NodeDef</a>s inherited from  supertypes of this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing the child <a href="../phpContentRepository/NodeDef.html">NodeDef</a>s.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/NodeType.html#methodgetChildNodeDefs">NodeType::getChildNodeDefs()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getDeclaredChildNodeDefs
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetDeclaredPropertyDefs" id="getDeclaredPropertyDefs"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getDeclaredPropertyDefs</span> (line <span class="line-number">108</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array containing the <a href="../phpContentRepository/PropertyDef.html">PropertyDef</a>s explicitly specified  in the declaration of this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
<p class="description"><p>This does not include <a href="../phpContentRepository/PropertyDef.html">PropertyDef</a>s inherited from  supertypes of this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing the <a href="../phpContentRepository/PropertyDef.html">PropertyDef</a>s.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/NodeType.html#methodgetPropertyDefs">NodeType::getPropertyDefs()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getDeclaredPropertyDefs
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetDeclaredSupertypes" id="getDeclaredSupertypes"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getDeclaredSupertypes</span> (line <span class="line-number">82</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns all direct supertypes as specified in the declaration of  this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
<p class="description"><p>In single inheritance systems this will always be an array of size 0 or 1.  In systems that support multiple inheritance of <a href="../phpContentRepository/NodeType.html">NodeType</a>s this  array may be of size greater than 1.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of <a href="../phpContentRepository/NodeType.html">NodeType</a> objects.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/NodeType.html#methodgetSupertypes">NodeType::getSupertypes()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getDeclaredSupertypes
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetName" id="getName"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getName</span> (line <span class="line-number">44</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the name of the <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getName
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetPropertyDefs" id="getPropertyDefs"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPropertyDefs</span> (line <span class="line-number">94</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array containing the <a href="../phpContentRepository/PropertyDef.html">PropertyDef</a>s of this  <a href="../phpContentRepository/NodeType.html">NodeType</a>, including the <a href="../phpContentRepository/PropertyDef.html">PropertyDef</a>s inherited from  supertypes of this <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing the <a href="../phpContentRepository/PropertyDef.html">PropertyDef</a>s.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/NodeType.html#methodgetDeclaredPropertyDefs">NodeType::getDeclaredPropertyDefs()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getPropertyDefs
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetSupertypes" id="getSupertypes"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getSupertypes</span> (line <span class="line-number">67</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns all supertypes of this <a href="../phpContentRepository/NodeType.html">NodeType</a> including both those directly  declared and those inherited. For primary types, this list will always  include at least nt:base. For mixin types, there is no  required base type.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of <a href="../phpContentRepository/NodeType.html">NodeType</a> objects.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/NodeType.html#methodgetDeclaredSupertypes">NodeType::getDeclaredSupertypes()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getSupertypes
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodisMixin" id="isMixin"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">isMixin</span> (line <span class="line-number">54</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns TRUE if this <a href="../phpContentRepository/NodeType.html">NodeType</a> is a mixin  <a href="../phpContentRepository/NodeType.html">NodeType</a>.  Returns FALSE if this <a href="../phpContentRepository/NodeType.html">NodeType</a> is  a primary <a href="../phpContentRepository/NodeType.html">NodeType</a>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			isMixin
		</span>
				()
			</div>
	
		
		
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 31 Dec 2004 10:15:16 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>